package com.ys.entity.base;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_BatchImportInfo", catalog="Id")
public class TsBatchImportInfo extends BaseEntity<TsBatchImportInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="InfoType", nameJava="infoType", typeDataBase="tinyint")
	private Integer infoType;
	@YsField(nameDataBase="ImportInfoState", nameJava="importInfoState", typeDataBase="tinyint")
	private Integer importInfoState;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsBatchImportInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public TsBatchImportInfo setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public Integer getInfoType() {
		return infoType;
	}
	public TsBatchImportInfo setInfoType(Integer infoType) {
		this.infoType = infoType;
		return this;
	}
	public Integer getImportInfoState() {
		return importInfoState;
	}
	public TsBatchImportInfo setImportInfoState(Integer importInfoState) {
		this.importInfoState = importInfoState;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsBatchImportInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsBatchImportInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsBatchImportInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsBatchImportInfo tsBatchImportInfo(
		String userId,
		Integer infoType,
		Integer importInfoState,
		Integer status
			) {
		TsBatchImportInfo entity = new TsBatchImportInfo();
		entity.setUserId(userId);
		entity.setInfoType(infoType);
		entity.setImportInfoState(importInfoState);
		entity.setStatus(status);
		return entity;
	}
}